package com.example.meterialproject.exts

import android.content.Intent
import com.example.meterialproject.base.BaseActivity

/**
 *
 * @ClassName: IntentExt
 * @Author: android 超级兵
 * @CreateDate: 1/6/22$ 2:20 PM$
 * TODO
 */
infix fun Intent.title(name: String): Intent = let {
    it.putExtra(BaseActivity.TITLE, name)
        .putExtra(BaseActivity.SUBTITLE, "${it.component?.shortClassName}")
}